package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.nursing.domain.NursingTask;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class NursingTaskDto extends NursingTask {

    // 以下是修改时使用
    private Long taskId;

    private String reason;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime;

    private String mark;

    private String taskImage;

    // 以下是搜索条件
    private String nurseId;

    private String startTime;

    private String endTime;
}
